package com.turing.merchant.feign;

import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import result.Result;

@FeignClient("customer-server")
public interface CustomerService {

    @GetMapping("/customer/cus/geCusById")
    Result geCusById(@RequestParam(value = "id", required = false) String id);

    @PatchMapping("/customer/cus/cusEdit")
    Result cusEdit(@RequestBody JSONObject jsonObject);

    @GetMapping("/customer/cus/cusListByCusIds")
    Result cusListByCusIds(@RequestHeader("Authorization") String token, @RequestParam(value = "ids", required = false) String[] ids);

}
